package com.example.sunmiv1.room.entity

import io.realm.RealmObject
import io.realm.annotations.PrimaryKey

open class UserVipEntity : RealmObject {
    @PrimaryKey
    var id: Long = 0

    var userId=""

    var birthday=""

    var address1=""

    var address2=""

    var address3=""

    var postCode=""

    var travel=""

    var email=""

    constructor()
    fun init(
        userId: String,
        birthday: String,
        address1: String,
        address2: String,
        address3: String,
        postCode: String,
        travel: String,
        email: String
    ){
        this.userId = userId
        this.birthday = birthday
        this.address1 = address1
        this.address2 = address2
        this.address3 = address3
        this.postCode = postCode
        this.travel = travel
        this.email = email
    }

    fun copy(entity: UserVipEntity){
        userId=entity.userId
        birthday=entity.birthday
        address1=entity.address1
        address2=entity.address2
        address3=entity.address3
        postCode=entity.postCode
        travel=entity.travel
        email=entity.email
    }
}
